@extends('common.layouts.master')

@section('title')
Routes
@stop

@section('actions')
	<a class="ui green button" href="create">Create New Route</a>
	<a class="ui red button" href="{{ url('projects/delete') }}">Delete Selected</a>
@stop

@section('content')
	@if(count($model))
	<div class="ui huge fluid vertical menu">
		@foreach($model as $project)
		<div class="item">
			<i class="arrow right icon"></i>
			<div class="content">
				<a class="header" href="{{ action('Netshell\Controllers\Project@show', ['id' => $project->id]) }}">
					{{{ $project->name }}}
				</a>
			</div>
		</div>
		@endforeach
	</div>
	@else
	<p>
		<i>You have no projects</i>
	</p>
	@endif
@stop